﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<SubjectList> list = v.data("list") as List<SubjectList>; %>

<%if (list.Count > 0){ %>
<% foreach (var row in list) { %>
<div class="infolist" onselectstart="return false;" title="<%=row.subjectname %>" <%if (bllPowerGroupService.powercheck("article", "subedit", modelpowergroup)) { %>ondblClick="javascript:parent.onbotton('_{subjectmanage_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.SubjectController().SubjectEdit, row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'subjectedit<%=row.Id %>',self.frameElement.getAttribute('name'));"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="4%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"></td>
			<td width="8%">
				<input type="hidden" name="infoid" id="infoid" value="<%=row.Id %>">
				<input type="text" name="pid" size="3" value="<%=row.pid %>" class="infoInput" onclick="if(this.value=='<%=row.pid %>'){this.value = '';}else {this.select();}" onblur="if(this.value ==''){this.value ='<%=row.pid %>';}">
			</td>
			<td width="8%"><%=row.Id %></td>
			<td width="6%"><%=row.lng %></td>
			<td width="34%"><a target="_blank" class="infolink04" href="<%=row.glink %>"><%=row.subjectname %></a></td>
			<td width="10%"><%=row.puvname %></td>
			<td width="10%" id="infotype">
				<table>
					<tr>
						<td><%if(row.subpic !=""){ %><span class="pic_ok" title="_{article_pic_ok}"></span><%}else{ %><span class="pic_no" title="_{article_pic_no}"></span><%} %></td>
						<td><%if(row.iswap ==1){ %><span class="iswap_ok" title="_{open_botton_title}"></span><%}else{ %><span class="iswap_no" title="_{close_botton_title}"></span>><%} %></td>
						<td><%if(row.isclass==1){ %><span class="audit_ok" title="_{infooktype_botton}"></span><%}else{ %><span class="audit_no" title="_{lockoktype_botton}"></span>><%} %></td>
					</tr>
				</table>
			</td>
			<td width="20%" id="infotype">
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit" onclick="javascript:parent.onbotton('_{subjectmanage_text_infolist_title}','#{view}?loadfun=articlelist&sid=<%=row.Id %>&mid=#{mid}&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'subjectlist<%=row.Id %>',self.frameElement.getAttribute('name'));" id="subjectlist<%=row.Id %>" href="#body" title="_{subjectmanage_text_infolist_title}" hidefocus="true">_{viewfield_botton}</a></td>
						<%if (bllPowerGroupService.powercheck("article", "subedit", modelpowergroup)) { %>
						<td class="padding-left3"><a class="setedit" onclick="javascript:parent.onbotton('_{subjectmanage_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.SubjectController().SubjectEdit, row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'subjectedit<%=row.Id %>',self.frameElement.getAttribute('name'));" id="subjectedit<%=row.Id %>" href="#body" title="<%=row.subjectname %>"_{subjectmanage_edit_title}" hidefocus="true">_{setedit_botton}</a></td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("article", "subdel", modelpowergroup))
                          { %>
						<td class="padding-left3"><a class="setedit" onclick="javascript:submiturl('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.SubjectController().SubDel, row.Id) %>?freshid='+Math.random(),'index.php?archive=management&action=load','_{run_ok}','_{run_no}',true,'_{del_messok}','selectform','selectall','check_all');" href="#body" title="_{setdel_botton}" hidefocus="true">_{setdel_botton}</a></td>
						<%} %>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
	<tr>
	    <td align="center">_{list_nothing_title}</td>
	</tr>
</table>
</div>
<%} %>